<?
global $db,$topurl;

$e = $db->query1("select * from node where id = ".$db->sqlint($params["id"]));

skin_param("page",$e);
echo $e["content"];

$ancient = $db->sqlstring(date("Y-m-d",time()-365*24*60*60));
$r = $db->query("select * from news where datetimeon > $ancient order by datetimeon desc limit 16");

foreach ($r as $e) {
	#echo "<h2>{$e["title"]}</h2>";
	#echo "<div><b>".date("M j, Y",strtotime($e["datetimeon"]))."</b></div>"; #g:ip
	echo "<h2>{$e["title"]} - ".date("M j, Y",strtotime($e["datetimeon"]))."</h2>";
	echo "<div>{$e["description"]}</div>";
	}
?>